<extend name="Public/base"/>
<block name="body">

	<div class="col-xs-6 margin-bottom-15">
    	<div class="group_tags group_types">
            <b>树丛话题分类：</b>
            <a href="{:U('group',array('id'=>$group_id))}" <if condition="!$_GET['cate_id']">class="active"</if>>全部</a>
            <a href="{:U('group',array('cate_id'=>1,'id'=>$group_id))}" <if condition="$_GET['cate_id'] eq 1">class="active"</if>>视频话题</a>
            <a href="{:U('group',array('cate_id'=>2,'id'=>$group_id))}" <if condition="$_GET['cate_id'] eq 2">class="active"</if>>图片话题</a>
        </div>
    </div>
    <div class="col-xs-6">
    	<div class="group_btnwp">
			<h2>世界这么大，想说就说，此时此刻，表个心态呗！</h2>
			<a href="{:U('index/edit',array('group_id'=>$group_id))}" class="">新建话题</a>
		</div>
    </div>
    <div class="clearfix visible-xs-block"></div>
    <div class="col-xs-12">
    	<php>if($type == 'post'){</php>
    	<div class="clxq-list">
			<if condition="$list">
			<ul>
				<volist name="list" id="vo">
					{:W('Group/Detail/post',array('post_id'=>$vo))}
				</volist>
			</ul> 
			<else />
			<div style="font-size:16px;font-weight:bold;text-align: center;padding:40px;border: #eee solid 1px;">
				树丛暂无话题！
			</div>
			</if>
		</div>
		<div class="gb-pages pull-right">
			{:getPagination($totalCount,$r)}
		</div>
		<php>}elseif($type == 'member'){</php>
		<php>}</php>
    </div>
<script>

    $(function () {
        bindGroupInvite();
    });
    function bindGroupInvite(){
        $('.group_invite').magnificPopup({
            type: 'ajax',
            overflowY: 'scroll',
            modal: true
        });
    }
</script>
</block>
